widget: Take a ref during ::unrealize emission
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 16 Mar 2015 15:20:21 +0000 (16:20 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 16 Mar 2015 15:27:06 +0000 (16:27 +0100)
commitb4e61b759ba9c0782ff7fd592046f46022ca471e
treefbf1257fd2b7c18f98943c114dd18b71a08685f3
parentf5f6ad99819117d18b51e5db047437be24267fe0
widget: Take a ref during ::unrealize emission

In order to prevent invalid memory access/crashes if the widget is
destroyed in a callback of that signal.

https://bugzilla.gnome.org/show_bug.cgi?id=745829
gtk/gtkwidget.c